package com.cjw.mapper.person;

import com.cjw.pojo.entity.person.UserDetail;
import com.cjw.pojo.query.person.UpdateBaseUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

@Repository
public interface UserDetailMapper extends Mapper<UserDetail> {
    Integer updateUserDetailByUserId(UpdateBaseUser updateBaseUser);

    Integer updateIntroduce(@Param("introduce") String introduce, @Param("userId") Long userId);

    UserDetail queryUserDetailByUserId(Long id);

    Boolean updateImageUrl(@Param("imageUrl") String imageUrl, @Param("userId") Long userId);
}
